package com.wr.recruit.service.dao.repo;

import com.wr.recruit.service.dao.dbo.UserDepartmentDbo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserDepartmentRepo extends JpaRepository<UserDepartmentDbo, Integer>, JpaSpecificationExecutor<UserDepartmentDbo> {

    List<UserDepartmentDbo> findAllByDepartmentId(Integer departmentId);

}
